package com.example.uCenter.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhl
 * @since 2022-08-29 08:38:53
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Getter
@Setter
@TableName("token")
@ApiModel(value = "Token对象", description = "")
public class Token {

    @ApiModelProperty("tokenid")
    @TableId(value = "token_id", type = IdType.AUTO)
    private Integer tokenId;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("刷新的token")
    @TableField("refresh_token")
    private String refreshToken;

    @ApiModelProperty("token的MD5值")
    @TableField("token_key")
    private String tokenKey;

    @ApiModelProperty("来源")
    @TableField("login_from")
    private String loginFrom;

    @ApiModelProperty("应用id")
    @TableField("app_id")
    private Integer appId;

    @ApiModelProperty("逻辑删除标记 0表示正常，1表示删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
//
//    @TableField("1")
//    private String 1;
//
//    @TableField("2")
//    private String 2;
//
//    @TableField("3")
//    private String 3;
//
//    @TableField("4")
//    private String 4;
//
//    @TableField("5")
//    private String 5;


}
